package com.yzd.learnjava.annotaions;

import java.lang.reflect.Method;
import java.util.List;

import com.yzd.learnjava.util.Print;

public class UseCaseTracker {
	public static void trackUseCase(Class<?> cl) {
		for(Method m : cl.getDeclaredMethods()) {
			UseCase uc = m.getDeclaredAnnotation(UseCase.class);
			if(uc != null) {
				Print.print("Found : " + uc.id() + ", " + uc.des());
			}
		}
	}
	
	public static void main(String[] args) {
		trackUseCase(PasswordUtil.class);
	}
}
